<?php
require_once("../../classes/User.php");

$user = new User;
$fname = $_POST['fname'];
$lname = $_POST['lname'];
$email = $_POST['email'];
$pass = $_POST['password'];
$gender = $_POST['gender'];
$user->updateUserinfo($fname,$lname,$email,$pass,$gender);

header('location: ../../account/profile/myprofile.php');
?>